const contractAddr = "0x9c060f30766bd850f7A2ef4C1c10a9AF97323544";
  
const abi = [
    {
      "constant": true,
      "inputs": [
        {
          "name": "",
          "type": "bytes32"
        }
      ],
      "name": "mapNicknameByAddr",
      "outputs": [
        {
          "name": "",
          "type": "address"
        }
      ],
      "payable": false,
      "stateMutability": "view",
      "type": "function",
      "signature": "0x5305d240"
    },
    {
      "constant": true,
      "inputs": [],
      "name": "owner",
      "outputs": [
        {
          "name": "",
          "type": "address"
        }
      ],
      "payable": false,
      "stateMutability": "view",
      "type": "function",
      "signature": "0x8da5cb5b"
    },
    {
      "constant": true,
      "inputs": [
        {
          "name": "",
          "type": "uint256"
        }
      ],
      "name": "videos",
      "outputs": [
        {
          "name": "id",
          "type": "uint256"
        },
        {
          "name": "title",
          "type": "string"
        },
        {
          "name": "owner",
          "type": "address"
        },
        {
          "name": "buyer",
          "type": "address"
        },
        {
          "name": "hashcode",
          "type": "string"
        },
        {
          "name": "value",
          "type": "uint256"
        },
        {
          "name": "isSell",
          "type": "bool"
        }
      ],
      "payable": false,
      "stateMutability": "view",
      "type": "function",
      "signature": "0xe6821bf5"
    },
    {
      "inputs": [],
      "payable": false,
      "stateMutability": "nonpayable",
      "type": "constructor",
      "signature": "constructor"
    },
    {
      "anonymous": false,
      "inputs": [
        {
          "indexed": true,
          "name": "_from",
          "type": "address"
        },
        {
          "indexed": true,
          "name": "_to",
          "type": "address"
        },
        {
          "indexed": false,
          "name": "_value",
          "type": "uint256"
        }
      ],
      "name": "Transfer",
      "type": "event",
      "signature": "0xddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef"
    },
    {
      "anonymous": false,
      "inputs": [
        {
          "indexed": true,
          "name": "_from",
          "type": "address"
        },
        {
          "indexed": false,
          "name": "nickname",
          "type": "string"
        }
      ],
      "name": "onRegistFree",
      "type": "event",
      "signature": "0x4ae0d8c617f18c9c2388200b82352631e9e543b791194daed000134319e39284"
    },
    {
      "anonymous": false,
      "inputs": [
        {
          "indexed": true,
          "name": "_from",
          "type": "address"
        },
        {
          "indexed": false,
          "name": "hashcode",
          "type": "string"
        }
      ],
      "name": "onUploadVideo",
      "type": "event",
      "signature": "0x1ea20824cb367dfbfbc2b61b796c7d2988cdd2c75aeeb6ab811aca6336f60ef5"
    },
    {
      "anonymous": false,
      "inputs": [
        {
          "indexed": true,
          "name": "_owner",
          "type": "address"
        },
        {
          "indexed": true,
          "name": "_buyer",
          "type": "address"
        },
        {
          "indexed": false,
          "name": "hashcode",
          "type": "string"
        }
      ],
      "name": "onBuyVideo",
      "type": "event",
      "signature": "0xf887c30b250d768a6ab4f6ec90ceb01a4e6bb4e84292bddae091d79f031d5aff"
    },
    {
      "constant": false,
      "inputs": [
        {
          "name": "title",
          "type": "string"
        },
        {
          "name": "addr",
          "type": "address"
        },
        {
          "name": "hashcode",
          "type": "string"
        },
        {
          "name": "value",
          "type": "uint256"
        }
      ],
      "name": "uploadVideo",
      "outputs": [
        {
          "name": "",
          "type": "bool"
        }
      ],
      "payable": true,
      "stateMutability": "payable",
      "type": "function",
      "signature": "0x7591ff30"
    },
    {
      "constant": false,
      "inputs": [
        {
          "name": "vid",
          "type": "uint256"
        }
      ],
      "name": "buyVideo",
      "outputs": [],
      "payable": true,
      "stateMutability": "payable",
      "type": "function",
      "signature": "0x3a2b1021"
    },
    {
      "constant": true,
      "inputs": [],
      "name": "boughtVids",
      "outputs": [
        {
          "name": "",
          "type": "uint256[]"
        }
      ],
      "payable": false,
      "stateMutability": "view",
      "type": "function",
      "signature": "0x0e2b3a17"
    },
    {
      "constant": true,
      "inputs": [
        {
          "name": "vid",
          "type": "uint256"
        }
      ],
      "name": "getVideoById",
      "outputs": [
        {
          "name": "",
          "type": "uint256"
        },
        {
          "name": "",
          "type": "string"
        },
        {
          "name": "",
          "type": "address"
        },
        {
          "name": "",
          "type": "address"
        },
        {
          "name": "",
          "type": "string"
        },
        {
          "name": "",
          "type": "uint256"
        },
        {
          "name": "",
          "type": "bool"
        }
      ],
      "payable": false,
      "stateMutability": "view",
      "type": "function",
      "signature": "0xa9ba4560"
    },
    {
      "constant": false,
      "inputs": [
        {
          "name": "nickname",
          "type": "string"
        },
        {
          "name": "passpwd",
          "type": "uint256"
        }
      ],
      "name": "registByFree",
      "outputs": [],
      "payable": true,
      "stateMutability": "payable",
      "type": "function",
      "signature": "0xb5a98bb1"
    },
    {
      "constant": true,
      "inputs": [
        {
          "name": "nickname",
          "type": "string"
        },
        {
          "name": "passpwd",
          "type": "uint256"
        }
      ],
      "name": "loginByPwd",
      "outputs": [
        {
          "name": "",
          "type": "bool"
        }
      ],
      "payable": false,
      "stateMutability": "view",
      "type": "function",
      "signature": "0x11ae3df1"
    },
    {
      "constant": false,
      "inputs": [
        {
          "name": "receiver",
          "type": "address"
        },
        {
          "name": "amount",
          "type": "uint256"
        }
      ],
      "name": "sendCoin",
      "outputs": [
        {
          "name": "sufficient",
          "type": "bool"
        }
      ],
      "payable": false,
      "stateMutability": "nonpayable",
      "type": "function",
      "signature": "0x90b98a11"
    },
    {
      "constant": true,
      "inputs": [
        {
          "name": "addr",
          "type": "address"
        }
      ],
      "name": "getBalanceInEth",
      "outputs": [
        {
          "name": "",
          "type": "uint256"
        }
      ],
      "payable": false,
      "stateMutability": "view",
      "type": "function",
      "signature": "0x7bd703e8"
    },
    {
      "constant": true,
      "inputs": [
        {
          "name": "addr",
          "type": "address"
        }
      ],
      "name": "getBalance",
      "outputs": [
        {
          "name": "",
          "type": "uint256"
        }
      ],
      "payable": false,
      "stateMutability": "view",
      "type": "function",
      "signature": "0xf8b2cb4f"
    }
  ]


module.exports = {
  abi,
  contractAddr
}